package org.budo.oracle.jdbc.driver;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

import org.budo.jdbc.driver.AbstractBudoJdbcPreparedStatement;

import lombok.NoArgsConstructor;

/**
 * @author lmw
 */
@NoArgsConstructor
public class BudoOracleJdbcPreparedStatement extends AbstractBudoJdbcPreparedStatement {
    private PreparedStatement preparedStatement;

    public BudoOracleJdbcPreparedStatement(PreparedStatement preparedStatement) {
        this.preparedStatement = preparedStatement;
    }

    @Override
    public boolean execute() throws SQLException {
        return this.preparedStatement.execute();
    }

    @Override
    public ResultSet getResultSet() throws SQLException {
        return this.preparedStatement.getResultSet();
    }
}